
ac.skill('精灵散射'){
    temp = '攻击触发',
    odds = 15,
    model1 = [[98.mdl]],
    model2 = [[YXJN_jlssqy.mdl]],
    on_run = function(self,hero,target)
        local point1 = hero:get_point()
        local point2 = target:get_point()
        local angle = point1 / point2
        local damage = self:dmg_get()
        local num = 3
        point1:add_effect(self.model2)
        ac.wait(750,function()
            for a=1,num do
                local r = angle + (a-num/2 -0.5)*15
                local p = point1 - {angle,100}
                local mover = p:launch_wave(self.model1,r,1200,900,nil,50)
                sc.loopUnit(0.03,mover,100,function(group,unit)
                    if unit:is_enemy(hero) then
                        hero:create_damage(unit,damage,self)
                    end
                end)
            end
        end)
    end,
}